<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var http01 = Promise.resolve(1001);
        var http02 = Promise.resolve("detail")
        http01.then(res=>{
            console.log(res);
            return res
        }).then(id=>{
            // 得到id值发送http请求
            http02.then(res=>{
                console.log("detail");
            })
        })
    </script>
</body>
</html>